import java.util.Scanner;
public class Example2_3 {
   public static void main (String args[] ) {
     System.out.println("qing shu ru ruo gan ge shu ,mei shu ru yi ge shu hui che que reng" );
     System.out.println("zui hou shu ru shu zi 0 jie shu shu ru cao zuo");
     Scanner reader = new Scanner (System.in);
     double sum = 0;
     double x = reader.nextDouble();
     while (x!=0){
           sum = sum+x;
           x = reader.nextDouble();
     }
     System.out.println("sum="+sum);
   }
}   

   
